package net.siufung.core.template.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.siufung.core.utils.ValidationUtil.Validatable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Map;

/**
 * @author 陈建峰
 * @since 2022/8/18 11:09 下午
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TemplateCommand implements Validatable {

    private static final long serialVersionUID = 7035087655719868899L;

    /**
     * 模版路径
     */
    @NotBlank(message = "模版路径不能为空")
    private String templatePath;

    /**
     * 输出文件
     */
    @NotBlank(message = "输出文件不能为空！")
    private String outputFile;

    /**
     * 模版参数
     */
    @NotEmpty(message = "模版参数不能为空！")
    private Map<String, Object> dataModel;


}
